package com.zz.test.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.utils.poi.ExcelUtil;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.zz.test.feign.InventoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.zz.dto.InventoryResponse;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 库存管理Controller
 * 
 * @author zz
 * @date 2025-06-25
 */
@RestController
@RequestMapping("/inventory")
@Slf4j
public class SmdInventoryController extends BaseController
{
    @Autowired
    private InventoryService inventoryService;

//    @RequiresPermissions("biz:inventory:isinstock")
    @PostMapping("/isinstock")
    public R<List<InventoryResponse>> isInStock(@RequestBody List<Map<String,Object>> skuCode) {
        log.info("远程库存查询");
        return inventoryService.isInStock(skuCode);
    }

}
